/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.weed.table.model;

import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;

/**
 *
 * @author Administrator
 */
public class DefaultTableRowSort  extends TableRowSorter{
    /**
     * Creates a <code>TableRowSorter</code> with an empty model.
     */
    public DefaultTableRowSort() {
        this(null);
    }

    /**
     * Creates a <code>TableRowSorter</code> using <code>model</code>
     * as the underlying <code>TableModel</code>.
     *
     * @param model the underlying <code>TableModel</code> to use,
     *        <code>null</code> is treated as an empty model
     */
    public DefaultTableRowSort(TableModel model) {
        setModel(model);
    }

    /**
     * Sets the <code>TableModel</code> to use as the underlying model
     * for this <code>TableRowSorter</code>.  A value of <code>null</code>
     * can be used to set an empty model.
     *
     * @param model the underlying model to use, or <code>null</code>
     */
    public void setModel(TableModel model) {
        super.setModel(model);
    }

}
